Fix pagination in mobile view