Fixed surface plotting caused by stricter checking of slice