fix timeseries z-index, split styling codes