get photos for galleries