cleaning up galleries so they extend of each other