fixed bug in slider not looping correctly when there are to few images