Resize screen correctly