update arrows in gallery to html entities