Update slider and gallery to work with picture element.

toArray sounds like an action but nothing gets turned into an array, which makes it a little confusing. Is that what you were going for?