minor modification to gpu reslicing using path.