todo didn't work
todo didn't work
modified the slide function so it works with all elements, not just ones with position: relative.