split path for slug