Slugify function to define card ids