set_sh_carousel function changed to check for number of elements