old_contents: var elem = document.querySelector('.main-gallery');
  var flkty = new Flickity( elem, {
    // options
    // cellAlign: 'left',
    // contain: true
    setGallerySize: false,
    wrapAround: true
  });
new_contents: var elem = document.querySelector('.main-gallery');
  var flkty = new Flickity( elem, {
    // options
    // cellAlign: 'left',
    // contain: true
    setGallerySize: false,
    wrapAround: true,
    imagesLoaded: true
  });
subject: fix issue with image position calculation