Fix bug where vert-scroll gallery layout broke.