functionality to change every other span's class