prepare introduction of galleries function