Adding part attributes to gallery pages.