Gallery functions for AkashaCMS