For JD- Pagination and Gallery Views