gallery and map size fix