Wondering About Slide Feature

Hi,
Well i’m trying to build a database slider on my site, something like the slider with function…"
function loadSlideshowData(slidesData) {
const slideElements = $w( “#dynamicSlideshow” ).slides;
slideElements.forEach((slide, index) => {
$w(#${slide.id}).background.src = slidesData[index].slideBackground;
$w(#slideTitle${index}).text = slidesData[index].title;
$w(#slideDescription${index}).text = slidesData[index].description;
$w(#slideButton${index}).link = slidesData[index].buttonUrl;
})"

Is there any other way to do that let say with the gallery pro>? so i could make the image and some text to be updated automatically from a slider database…

Thanks