Add pagination to getCategory