pagination created for products and categories