save window height and width