Normally flatworm can be seen by naked eye only that is white in color and comes out through excretion. Other worms are hard to see but show only various symptoms. You have found these worms in bed that means these are fleas. Fleas are normally brown or black and have no wings to fly. They have flattened bodies. There are various products in market that kill fleas. Fleas cause numerous infections on pet's body if they grow in large number with the passage of time.