Add pagination to lists.