Made sure elements aren't attached before the slide is displayed. Reduces loading of media and speeds up page rendering.