Try moving the white rectangle as long as possible without touching any other rectangle or the edges.