4d slice_to_spectrum added