auto minimize the active pigs window