Improve the layouts functions

  1. Using multiple layouts I lose IDs and this does not have to happen because errors are generated in JS functions.
    It is imperative to find a solution to keep them in all layouts. Work with the suggested classes is complicated.

  2. The height of the templates should not be defined in pixels, but it may be dynamic based on dynamic content.

All the best! :slight_smile:

though this is really not that much effort: