Vanilla javaScript content slider