Mechanism Help Brainstorm

Go take a look at home depot to see how rechargeable tools hold the batteries or toys r us. Also look at old cell phones when you were able to change the batteries.

But asking a very specific question like this without any background information is a bit limiting. Why not share a bit more about how it’s used and why it has to be flush all around.