update d3 slider example for better rendering on mobile