modified api, getting category slug and image