Built a slider directive