Move slider in a directive and few fixes in directives