fix photo display and length