Added paging to image gallery
Fixed loading bug