Issue 1603 - Fixed a removeEventListener() call, left out in the previous commit
Issue 1606 - Don't create overlays for hidden elements
Issue 1607 - Create overlays with corresponding z-index