How do I secure the side foam pieces? – Gradient

Attach the adhesive plastic covers to both sides of each side foam piece, then slide them into the window frame to hold them in place.