Splitting and jetting of cavitation bubbles in thin gaps