change id to slug