hiding events depending on overflow
showing and hiding entries based on element overflow