fix hidden groups in firefox

Fix hidden groups in Firefox

please test @Raydiation @rperezb 
@DeepDiver1975 can you please test if this breaks anything in IE.