add pagination to admin/gallery page