created uniqueSlug() function