Slider interval

I was wondering if it is possible to define the maximum valium of a slider (B) with the choosen value of another slder (A)

image