add attributes to carousel