Shrink main window