setElements(elements) {
        this.settings.elements = false;

        const newElements = [];

        if (elements && elements.length) {
            _.each(elements, (el, i) => {
                const slide = new Slide(el, this, i);
                const data = slide.getConfig();
                const slideInfo = _.extend({}, data);

                slideInfo.slideConfig = data;
                slideInfo.instance = slide;
                slideInfo.index = i;
                newElements.push(slideInfo);
            });
        }

        this.elements = newElements;

        if (this.lightboxOpen) {
            this.slidesContainer.innerHTML = '';

            if (this.elements.length) {
                _.each(this.elements, () => {
                    let slide = _.createHTML(this.settings.slideHTML);
                    this.slidesContainer.appendChild(slide);
                });
                this.showSlide(0, true);
            }
        }
    }
Set the entire elements
in the gallery, it replaces all
the existing elements
with the specified list

@param {array}  elements