programmatic card flip to avoid nested fragments and cooperate with the support library