If you want your bangs to stay in place while you sleep, roll them up with a big or medium hair roller (the size will depend on the length of your bangs). Your bangs will retain their form and be less prone to developing cowlicks if you do this.