A visa is only an entry document and can expire while you are in the U.S. There is no issue if your visa expires while you are legally present in the U.S. As long as your status is still valid and you continue to follow all immigration regulations, you can continue to remain in the U.S. even if your visa has expired.