Groupbox - probably not - can be done in code
The Nextion Editor will adjust pictures based on what you stored resource as.
If you want to adjust length, you need to adjust the length of pic in resources.
Components are fixed
GUI commands provide better flexibility but do not respond with touch as they are not components
good planning, xpic and line commands accomplish what you ask