built a basic slider directive