Better responsive design for debugLayer