forced logarithmic pagination to contain next and previous page