convert channel to layer