During sex, or even masturbation, the scrotum tightens as the penis pulls skin away from it. This pushes the testicles upwards, and they can disappear, only to return later. It is normal and there is absolutely nothing to worry about. Unless of course, it doesn't pop back out. Then call your doctor.