add setDepth() function that calculates z-index based on some arbitrary depth value