Set the slug when creating a new resource