An element positioning plugin with collision detection and final position