add many, many property calculations toward making the div layers auto-size