Add the possibility to override the zIndex

(to be merged after the other PR)