pagination so page has fixed height