Side menu auto hiding when resizing