add resize function so backgroundDiv get's correct size on initialization