diff --git a/core/templates/widgets/drilldown.html b/core/templates/widgets/drilldown.html
index e9c4321..c96fd20 100644
--- a/core/templates/widgets/drilldown.html
+++ b/core/templates/widgets/drilldown.html
@@ -26,5 +26,6 @@
var grid = document.getElementById("grid-stack-main").gridstack;
grid.addWidget(contents.innerHTML);
contents.outerHTML = "";
+ grid.compact();
\ No newline at end of file