fixed sizing issues on gallery rotation