Built a basic slider Directive