If the gravel is fine enough, they will be expelled through the opening of gill cover (can't remember the scientific name of it). They will spit it out if they can't sieve the gravel.
The sieveing of gravel and sand is their way of finding microscopic or small pieces of food in the sand.
Bookmarks