Changed transition of gallery to only apply to transform