cache elements and remove mouse position