There is no invulnerability time on the slime. The effect is just here to show to the players that they hit the slime.
In fact the slime take damage each time the bullet is hitting the slime. So if the bullet get stuck in the slime it won't deal damage to it. The bullet needs to get out of the slime hit box to deal damage again.