prepare for the auto-hide sidebar
Done part