Issue #8756 by tuj: Fixed bug where dispose was called on image slide