<div id="slider1" data-slider></div>
<div id="slider2" data-slider></div>
<div id="slider3" data-slider></div>
let sliders = document.querySelector("[data-slider]");
for (let i = 0; i < sliders.length; i++) {
let slider = Slider.load(sliders[i]);
slider.start();
}
$("[data-slider]").each(function() {
let slider = Slider.load(this);
slider.start();
});