fixed gallery overflow