restructured the ending of slides