I refactored this slider widget to resolve issues that caused the sponsored slide’s data to only appear when the sponsored slide was in the first position in the slider; when scrolling through the slides and repeating the slider, the sponsored slide was blank until it became positioned as the first slide again. I deduced the root of the problem through logging data and inspecting the slider elements, particularly the inactive slides. To resolve the issue, I had to change how the data was being fetched so that the sponsored and non-sponsored slide data could be initialized together in the slider simultaneously. This was a fun challenge to both investigate and resolve, and now the sponsored slide is displayed at all expected positions when scrolling through the slider.