binding z-index to pinned state in template