use slug instead of id