recursively find slug root