slider directive code soup