reverting slider to use JS instead of CSS