If she is resting most of the time on top of the filter she is almost ready to drop of has another problem. After about a week, I am going to guess it is another problem.
It is time to check your water parameters. Mollies have the exact same issues with an immature tank as any other fish. They do not do well if either ammonia or nitrites rise above about 0.25 ppm as measured by a liquid test kit. If you find either of those chemicals present, do a huge water change of at lest 50% to bring it down.
If you find that part of your chemistry is OK, the next thing to look at is the hardness of your water. Mollies do not generally do well in pure water. Common pet shop mollies require a rather high mineral content in their water. If you have "ideal" water of a neutral pH and low mineral content, it will be stressing your mollies. Plenty of egg layers do great in that kind of water but mollies demand a higher mineral content. Depending on what fish share the tank with the molly, you may or may not be safe raising the mineral content. A simple way to raise it and improve a typical molly's health is by adding some crushed shells or crushed coral to the filter's water flow path. A tiny bit of the calcium carbonate that makes up those materials will dissolve in your water and raise the pH and mineral content a fair amount. The problem with doing that is that low mineral content water really is best for many other fish such as angels, tetras and even plecos which will not appreciate any such change in their water.