border in total sum fix, add on window resize event