Here is a guitar practice exercise that will help improve your alternate picking while crossing strings - called cross picking. Start slowly with a metronome. You can practice this guitar lick using a variety of rhythms. I would recommend triplets and eighth notes. Use alternate picking throughout.