changed gallery to use thumbnails for optimization, made responsive logic better