var list = Array('1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg'); => compare 1.jpg vs 2.jpg then continuous with 3.jpg vs 4.jpg; ...