updated galleria.js and modified for our needs