Currently the gallery template size properties are fixed values. It would be useful so it can grow depending on the content of the item showed.
Eg allow for multiple line text if the text needs it, and keep it to a single line if not. The height would need to be bigger in the first case.