OK, so I have tested:
Solution 1:
var tl= new TimelineMax({repeat:-1});
tl.set("#galleri", {src:"bildegallery_1.jpg"})
tl.set("#galleri", {src:"bildegallery_2.jpg"}, "+=2")
tl.set("#galleri",src"bildegallery_3.jpg", "+=2"
Works partly, image bildegallery_3.jpg won't show up.
Solution 2:
tl.to("#galleri", {attr:{src:"bildegallery_1.jpg"}});
I think you lost the time, change it to tl.to("#galleri",2, {attr:{src:"bildegallery_1.jpg"}});
Then I get the same problem as I started with. So I conclude I have to change the image names......???