Made sure elements aren't attached before the slide is displayed. Reduces loading of media and speeds up page rendering.
Merge branch 'master' into api-1.1