That is not the right way to shift. The front gears should shift infrequently relative to the rear gears. When you start cycling, pick a gear that is compatible with the conditions. Say, the small ring in front and the middle cog in the back. Then you cycle, as you gain speed you'll shift to a smaller gear in the back, then another smaller one. When you are one before last on the rear gears, you shift to the large gear in the front and a few (3-4) gears lower (towards the bigger cog) in the back. Then as you gain more speed, again shift the rear gears towards the small cog.