Adjust the photo display layout