If you're truly concerned, put some water in the bottle so they start to dissolve -- just a little.   If they're in a bubble pack, you could poke the cells of the pack with a pin -- make the hole big enough so people can see it but not big enough so the pills fall out.

The more constructive thing would be to request smaller amounts from the doctor.   If the doctor is going to prescribe 30 pills for pain and you don't think you'll need that many, ask for 10 pills with two refills, or something like that so you aren't given all the pills at once.   If you don't fill the prescription for the refills, then they can't charge you!