Slider with a fixed range

Slider with a fixed range

Hi,

I want a slider which selects a range of 3 out of 10.
It could be done with the range slider but then the range could be changed and that should not be possible.
Yet it should work as a range slider because I need the two values of the range.
As an attachment I added an edited screenshot which will make clear what I am looking for.

Greetings Tomas