I used the old foam gasket as a template and cut out the shape from my new foam. When I was finished with that I used a punch set to get perfect holes for my screws to go through. My cutting wasn't perfect, but it won't be seen and it will seal up the gap quite well, regardless. I think an electric carving knife would have been best for a clean cut, but I did not have one on hand.