I'd pull it all out and then use some auto grade carpet cut to fit. That way you can attach it with a good adhesive.

C.