use pattern with slug