fix gallery ui