update gallery output for 3.5