Reduce the number of DOM elements