sleep mouse before loop