change gallery output