Changed behaviour of pictures in the overlayed gallery