Capsule swapper