Maintain the position of the centerViewController when the centerViewController is changed. Also, redraw shadows and re-add the gesture recognizers.