They are tapeworm segments. Chickens get tapeworms from eating tapeworm infected insects. You'll need to purchase Equimax equine paste at a feed store to treat tapeworm infected birds. There is no need to treat the whole flock, only the birds that excreted the segments.
Equimax dosage is given...