Expanded imagebam to get paginated galleries