Slider loop made dynamic.