Fixed some visualization problems of the gallery