JS function to dynamically set each carousel  slides BG img based on data attributes