remove_inside rect (dim=2) and test on simGibbs