Allow smoother transitions when switching from portrait to landscape orientation