Update slider and gallery to work with picture element.