reducing the size of the window