You state it in your last sentence. Students who excel and consistently get As sometimes have great study tricks and habits that are easy to adopt and can make a big difference in your academic achievement. See if your guid counselor or favorite teachers can lead you to some of these.
Many (probably most) high schools will not include online classes (or classes taken at other schools) in your GPA. Talk to your guidance counselor to find your school’s policy before you rush to take online classes. Unfortunately there is no substitute for hard work for getting good grades. Work towards having a strong finish to this year and a good start to your senior year.