fixed re-positioning on resize, added distribution