working on pagination for category page