Add new gallery fuction calls to gallery template