Improve compatability of slide scroll

Now works on firefox