The A-B transition in superfluid helium-3 under confinement in a thin slab geometry