utils: use slice as chan buffer