Update gallery to work in IE