fixing z-indexes while dragging