Sure, you’ll need to nest the movable elements in the canvas:
You can then translate the slider’s range into pixels:
Alternatively, you can hard-code slider values: