first version for reslice window