Updating collection view to center its content vertically if scrolling horizontally, and vis versa.