The pancakes form when foam floating on a river or the sea freeze. These frozen chunks are then shaped by being rubbed against one another in eddies of water.