init photogallery.js