refactored photos in trail index page