feature: consider hidden elements

Implementation for issue #88