Resize window according to screen resolution