Add active classes to scrolled material