Changed height if carousel is not present
Moved the height setting to def javascript