only set the margin when sidebar is actually visible