Add a pan gesture recognizer to support swiping from right to left on a tab to interactively remove it.