correcting regex for slugs