Better window resizing step2