made changes to errors
fixed margins in picture galler