minimap for any dom element - bug fix