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
Merge branch 'api-1.1' into api-1.2