moved datepickers inside of slider directive and removed some unnecessary code