added function: cutAlignment()