Update slider and gallery to work with picture element.

Nope, I was actually going to just create an object but checked out some of our other utils (like `css_helper.js`) and this seemed to be the convention.