move frames into <ol> and cycle visible class