create before and after selectors for z-index bag