maximize surface view size in bothe portrait and landscape orientations