As people are noting here, you can't - it's human nature.
But you can poke fun at it as a colleague of mine at FBT did in our weekly (and satirical) Lobby Bar feature, to wit:
...Put on a life vest and smile for the camera. First-class passengers on a British Airlines jet that caught fire on the runway in Las Vegas were the first to benefit from a new service from the airline: an additional flight attendant was stationed at the first-class door to assist each passenger with a selfie before going down the slide to ensure that passengers taking selfies didn’t slow the evacuation...
<SNIP>
Above from
Lobby Bar – September 11: Narcissism in a Crisis, Cars with Fins, Spas to Go, and Edible Computers