Resizing window

works for tested displays