stop side panel showing briefly without properly defined position