Simplify layermanager html markup and hide arrow icons when needed