flow layout for bottom elements handles orientation changes on ipad