Added istance function to fix layer position after filtering annotations