fix zindex, rescale and opacity