added null check for photos
reduced image height
minor changes
cleaned js
fixed mobile display