Slider steps respecting select values

Slider steps respecting select values

Supposing we have a drop down with the follow values:

1, 2, 5, 15, 50, 150

I want the steps to be spaced relative to their values, so 1 to 2 will be smaller than 2 to 5, etc.

Is there a way to do it already?

Thanks