generate-slugs: Generate slugs for accessions

Fixes #5263.