allow carousel to take nested array