If you want to keep the curtains closed, place the magnets inside the vertical edge. To seal the curtain's edges to the window opening, position the magnets across both sides and the bottom.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.