Hey,
thanks for your input. I started from jay001020s suggestion and modified so that it works for my custom slider.