Don't ever do such things near to a kid. No matter if they're sleeping or not, and no matter if they're just a half a year old.