Code for custom idx carousel widgets.