Clicking to the right of the last image now closes the grid