fix bug in reslicing
fix bug in reslicing

NicolasSchnitzler/medInria-public,NicolasSchnitzler/medInria-public,rdebroiz/medInria-public,aabadie/medInria-public,rdebroiz/medInria-public,rdebroiz/medInria-public,aabadie/medInria-public,NicolasSchnitzler/medInria-public,aabadie/medInria-public