Gallery size fix