reworked 'active' class distribution for dots