2
I think the beforeSlideChange or afterSlideChange event handler can help you to implement it. The two event handlers are described in demo4
A sample implementation using the event handler might also help, though it is for a different task: