Tampons.

Is it safe to wear tampons while you sleep. I can't wear pads bi feel they're unsanitary and I can NOT sleep in them. But a friend told me it's really bad to sleep in them. So what do you guys think?