Fixed z-index sidebar at max

Close #1679