Limit number of photos to load in ui