nearly finished the gallery
some fixes