Add action to close swipebox from mouse click somewhere outside the image. Not on touch

Tested on iPad 1, Chrome, Chrome with touch events (developer tools). 

On touch this PR changes nothing, with mouse it closes the swipebox when clicking outside the image.