Built a basic slider directive