Changed the classes of the divs to ids and wrote separate functions for the pictures