function to do cool stuff on resize - variable are stored in the body:after attribute