Resizing the window openings