changed execution order of the before callback

With this fix the pause function is able to correctly set its flag (playing) and therefore the before callback gets the correct slider object.