The new version of gallery is adopted