refactored some stuff in carousel to use new-style fns in dom-factory