Switched to one array for all photos
Removed commas from a join, fixed a bug
Now displaying multiple galleries