add class 'visible' to visible elements