[BUGFIX] use unique Gallery ID (with working modal function)

solves #150