implemented gallery concatenation. fixed #4