Refactored previously introduced method, which prevents that dots overlap other dots.