I don't think that doctors slap babies after birth . This used to be an old practice if the baby failed to cry immediately after birth. The doctor would hold the baby upside down and slap its butt softly to stimulate it to cry and take its first breath on its own . The upside down position would help in draining out the amniotic fluid .