Changing the main weapon from Assault to Sniper Rifle

Eeerm how?...I might have dreamt it but I remember being able to stretch the assault rifle into a sniper rifle that charges up the longer that you hold the trigger, and I just cant seem to remember how to do it now, a little help would be great, cheers