@VirtualVirgin Little unrelated tip of the day:
mySliders.map(function(element){return element.getId();});can also be written as
mySliders.map(element => element.getId()); Link Preview Image Arrow function expressions - JavaScript | MDNAn arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage:
faviconMDN Web Docs (developer.mozilla.org)