It sounds like they may be 'flashing' which is usually an indicator of something being wrong, usually something parasitic but can also be an indicator of high ammonia levels (is your tank cycled?).
I've never heard of fish rubbing against the glass during labor.