Toggle flag placement, and leave closed if adjacent