add pagination to categories