now capable of generating a slice at x=const and integrating along x