adding slug and changing from _id to .id