split slide code to partial