prevent horizontal jumping of the screen