var elements = document.getElementsByClassName('a');
var array = Array.from(elements);
console.log(array.slice(1,3));
var elements = document.getElementsByClassName('a');
var array = [];
for (var i = 0; i < elements.length; i++) {
array.push(elements[i]);
}
console.log(array.slice(1,3));