new algorithm for slug generation