Fix pagination on smaller screens.