on resize recalculate offfsets