adjusts photo display on detail.html