changed to cycle2 and implemented resize handler