Making the difference between portrait and landscape