fix resize bug in jquery hero unit