giving z-index priority for draggable piece