updating the screen width