limited the number of photos to display