adding fix to make sure frame of sidebar is the same before and after orientation change