detach slides before removing them from the dom so possible events are retained