Vid 1976

Refactoring the new media galleries so they are rendered client side. This handles issues surrounding lazy loading. 
You could save yourself a local variable and get rid of lines 24 and 36 if you changed this line to
```php
$this->$galleryData[] = $media;
```