How do bottle nose dolphins sleep?

Bottle nose dolphins do sleep but in a weird kind of way. Half of there brains sleep while the other half keeps swimming for air.