double slice sum