adds the slug for projects and events