pagination for gym view