fix looped slider to work with jquery 1.10