Update slider and gallery to work with picture element.

And easily testable :)