Slides field was not properly initialized for the media elements. Fixed.