Refactor cdSlider to allow dynamic collections