update side menu size to half screen, handle rotation change