Update gallery element to remove figure tag