Removed the left and right arrows if the gallery only has 1 image

A check is done just before the arrows are rendered, and on clicking
the close button