A model for thinning of the plasma sheet