fixed bug with loading all the divs and then hiding them using js