Rotate to portrait when leaving gallery mode