fixed bug with container resizing and map position to pixel position mapping