new method to parse a slug