You could always have two copies of of the UI, one above, one below and fade between them when the player is at the top or bottom of the screen. Or have the gameplay shrunk so there's a boarder at the top and bottom of the screen where the UI rests.