A jQuery slider from scratch