If it turned out that the distance between the frame and the sash is more than three millimeters, then it is necessary to put a piece of thin plywood so that these parts of the windows come closer to each other. For even greater strength, you can screw fasteners with a semicircular head.