added capability to do fourier transforms on different slices