add gallery, ability to detect too large upload file