fix in visual mode when a row or column is hidden
added create_structures and delete_structures functions in main.c