revert last commit, it broke scrolling. also replace expensive CSS rules with differen solution