adding a gallery layout w/image size option
change to foreach $attachment
css to make it work