Hi.. My not really good solution as I ran into the same problem:

1. create a var that backs up the html before the slider is called.
2. on resize, remove old html
3. add backup while changing...