Edit bootstrap image gallery to compact bootstrap3.0 modal.