win.on('resize', function(e){
var width = win.width(), height = 360, gallery_width, gallery_height, difference;