Slider working with transition on d3