Well, this commands might be of use:
'Dialog' - Determines true/false as to whether or not a dialog is open.
You could add something to your script like this (Not tested!):
#wait
@dialog
hint "dialog open"
slidersetposition [103, pos]
@not dialog
hint "dialog closed"
goto "wait"
8)PEACE