add splice function to model arrays