check visibility of elements