properly paginating products