fixing issue with slider relating to version of jquery