ignore hidden elements for sidebar positioning