respect zIndex when using box reuse