Made a limit on the window size