Fix bug calculating means and stds on incorrect num points in cslices