change styles of gallery