fix the size of the window