js function to dynaically adjust portfolio section height