The contribution of the lateral thermal instability to the switching phenomenon