Lazy Loading with Boostrap 4 Carousel

Is there a way to load image on Bootstrap carousel every time class "active" is toggled? I'd like to create a carousel where contents (gifs) are reloaded every time the slide is showed up. Can someone help me?