Further tidying of spanslider code