fixed compute_statistics in slices class