change count from slice back to matrix