fix gallery control positioning.