Fix pagination on mobile