added max-width to images
changed jquery code