on resize recalculate offfsets
removed some spaces