Fixed the gallery transitions