Set divs and style them using style.js and works for horizontal and vertical variants