The shell coin is quickly slid over the dime to make it appear to be gone. A thin metal disc can also be glued inside to make the penny magnetic.
This is completely legal to do. The law permits the alteration of coins as long as the intent is not for fraudulent purposes.