implemented gpu-version for reslicing volume using path.