Resize thumbnails dynamically in jitsi meet for mobile

I would like to resize the participants’ thumbnails according to whether the participant on stage is broadcasting his video or not, that is to enlarge the size of the thumbnails when is displayed his avatar, to reduce their size when is displayed his video.
I found the function “resizeThumbnails” in modules\UI\videolayout\Filmstrip.js
Is a good idea to modify it? If so, can someone give me some indications how to modify it?
Many thanks for your attention,
Stefano