Set mainCarousel css style to the backgroundColor