Change $slug to $data