added support for z-index and opacity